import 'package:flutter_elf/base/base_page_state.dart';
/// CreateTime 2020/7/3 9:46
/// CreateUser chen 
/// ProjectName flutter_elf
import 'package:flutter_elf/config/component_index.dart';
import 'package:flutter_elf/widgets/loading/loading_help.dart';

class DialogTestPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return DialogTestPageState();
  }
}

class DialogTestPageState extends BasePageState<DialogTestPage>{

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((_){
//      showLoginLoading(context);
      Future.delayed(Duration(seconds: 3)).then((_){
        Navigator.pop(context,false);
      });

    });
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBarCreator.create(context, 'dialog测试'),
      body: ListView.builder(itemBuilder: (context,index){
        return Text('条目' + index.toString());
      },itemCount: 100,),
    );
  }
}